1
00:00:00,360 --> 00:00:06,630
‫Welcome to our second lecture, not let me mention that I am not a native English speaker, but this

2
00:00:06,630 --> 00:00:09,590
‫is not going to be a barrier between me and you.

3
00:00:10,020 --> 00:00:16,320
‫I have a determination to make you understand how to develop ERP next applications, and therefore I

4
00:00:16,320 --> 00:00:18,390
‫am going to be steady as I speak.

5
00:00:18,660 --> 00:00:19,880
‫I am going to go slow.

6
00:00:20,130 --> 00:00:25,710
‫I am going to make sure that I am audible and I am hopeful that you are going to get their value that

7
00:00:25,710 --> 00:00:27,090
‫you need in this course.

8
00:00:27,690 --> 00:00:35,010
‫Therefore, as we said in our first lecture, this second lecture, we are going to be setting up an

9
00:00:35,010 --> 00:00:38,820
‫environment which we are going to be using to develop APIs.

10
00:00:39,270 --> 00:00:42,420
‫So by setting up environment, I do not mean installation.

11
00:00:42,660 --> 00:00:46,320
‫I am hopeful that you have already installed your instance of ERP.

12
00:00:46,320 --> 00:00:48,170
‫Next here you can see mine.

13
00:00:48,180 --> 00:00:48,900
‫It is ready.

14
00:00:49,050 --> 00:00:51,270
‫It is waiting for me to do the next steps.

15
00:00:51,630 --> 00:00:53,190
‫So here what we are going to do.

16
00:00:53,370 --> 00:00:56,640
‫I am going to show you how to create a custom up.

17
00:00:57,420 --> 00:01:02,340
‫And there is one way I am going to be showing you how to create your custom app is because creating

18
00:01:02,340 --> 00:01:07,960
‫your custom should always be the step that you take when you want to write API.

19
00:01:07,970 --> 00:01:11,130
‫Is your custom APIs on top of ERP next?

20
00:01:11,540 --> 00:01:16,950
‫And the reason is because when you write your code outside of ERP next, you have got to be safe.

21
00:01:17,340 --> 00:01:21,000
‫Everything that the Firepit team and the European team next team.

22
00:01:21,000 --> 00:01:25,290
‫Right, they are put in deploys a new a new version of ERP next.

23
00:01:25,590 --> 00:01:29,880
‫You will not be worried because you are caught will not be conflicting with what they have written.

24
00:01:30,120 --> 00:01:32,430
‫You code will be on your own custom app.

25
00:01:32,670 --> 00:01:37,320
‫It will be calling functions inside of ERP next, but it will be outside.

26
00:01:37,680 --> 00:01:41,340
‫But if you write, you are quote on top of ERP next files.

27
00:01:41,760 --> 00:01:49,350
‫If they make changes to those files, then most likely when you do an upgrade or an update, your version

28
00:01:49,350 --> 00:01:52,500
‫or your code is going to be overridden by what they have written.

29
00:01:52,980 --> 00:01:59,070
‫Therefore, this is the reason why every time you want to write or you own custom staff on ERP next,

30
00:01:59,460 --> 00:02:02,760
‫the first step should be to create a custom app.

31
00:02:03,660 --> 00:02:05,310
‫I'm going to show you how to do that.

32
00:02:05,940 --> 00:02:11,880
‫Then after that, what you are going to do here is that we are going to take that up of ours and we

33
00:02:11,880 --> 00:02:16,950
‫are going to install it on top of our site that we already have on ERP next.

34
00:02:17,250 --> 00:02:21,600
‫I am saying already have, because I am assuming that you are instances already running.

35
00:02:21,840 --> 00:02:27,540
‫You have installed the site and because we do not need any other site, we are just going to install

36
00:02:27,540 --> 00:02:30,330
‫the app that we will create on our site.

37
00:02:31,140 --> 00:02:36,300
‫I am hopeful that I'm very clear that I will be showing you that as we move along on this one, then

38
00:02:36,300 --> 00:02:42,960
‫the next thing we are going to do is that I'm going to show you practically how you're going to do,

39
00:02:43,020 --> 00:02:45,870
‫how you can check whether you are successfully installed.

40
00:02:46,230 --> 00:02:51,030
‫There are multiple checks that you can make in just make sure that your application will run smoothly.

41
00:02:51,480 --> 00:02:57,270
‫And then after that, I am also going to introduce you very briefly to post posthuman, an application

42
00:02:57,270 --> 00:03:00,480
‫that we are going to be using mostly during this series.

43
00:03:00,780 --> 00:03:08,700
‫Therefore, without wasting so much all the effort, without spending so much more time on this explanation,

44
00:03:08,970 --> 00:03:12,270
‫let me jump in and do a bench start so that I can start.

45
00:03:12,270 --> 00:03:14,520
‫My, my, my, my, my.

46
00:03:17,250 --> 00:03:24,240
‫So that I can start my instance, so I can see that my instance is running on 43000 and 40000 in three,

47
00:03:24,720 --> 00:03:27,750
‫and therefore I can just come here and reload.

48
00:03:30,450 --> 00:03:39,030
‫Is 40000 and three in waiting for it to reload, so go ahead also on you, on your machine and jump

49
00:03:39,030 --> 00:03:41,760
‫start your instance and carry on.

50
00:03:42,090 --> 00:03:49,190
‫Let me split my Tamino here so that we are able to work on side by side.

51
00:03:49,200 --> 00:03:51,630
‫We have, for instance, running here and we can work on this area.

52
00:03:52,080 --> 00:03:59,460
‫And the terminal I am using here, this is Caminada and there is on my left.

53
00:03:59,460 --> 00:04:02,390
‫I mean, it is because I am able to split it into so many sections.

54
00:04:02,400 --> 00:04:03,540
‫It is it is limitless.

55
00:04:03,540 --> 00:04:08,840
‫I can split it into so many sections and do my thing comfortably within the same screen.

56
00:04:09,390 --> 00:04:13,770
‫Let me increase 40 years for those who are able to see well and know what I'm going to do here just

57
00:04:13,770 --> 00:04:16,280
‫knows that we are logged when we split this window.

58
00:04:16,710 --> 00:04:21,410
‫The thing has blocked us out from the ERP next the and we are logged in NASCAR only.

59
00:04:21,430 --> 00:04:28,080
‫So make sure to remember to do Sudoku and then go back to the next supply their PASWAN and we are logged

60
00:04:28,080 --> 00:04:29,070
‫in Europe next.

61
00:04:29,310 --> 00:04:33,890
‫And therefore I can now go to bench and sorry, it's not Europeanist.

62
00:04:33,900 --> 00:04:41,430
‫We are working with the Karani instance and once I am there, how will we create a new app is just by

63
00:04:41,430 --> 00:04:46,280
‫doing bench bench new app and then give it a name.

64
00:04:46,290 --> 00:04:54,650
‫I'm going to call it ERP next at my study master ERP next month.

65
00:04:54,660 --> 00:04:56,850
‫Then you can call this whatever you want to call it.

66
00:04:57,090 --> 00:04:59,670
‫It's a depending on what you want to build with your app.

67
00:05:00,330 --> 00:05:01,380
‫So I proceed.

68
00:05:01,710 --> 00:05:06,420
‫This one by default gives you the name here depending on what you have supplied here.

69
00:05:06,600 --> 00:05:10,190
‫So just if you want to change this title, you can just change it a bit here.

70
00:05:10,380 --> 00:05:12,270
‫But I'm comfortable with ERP next month.

71
00:05:12,270 --> 00:05:13,320
‫That is why I click next.

72
00:05:13,680 --> 00:05:14,900
‫And the app description.

73
00:05:15,360 --> 00:05:24,840
‫This one is just for API, for ERP next API series.

74
00:05:27,140 --> 00:05:33,140
‫Serious, and then the publisher, the publisher is this one is whoever is publishing the Opsware can

75
00:05:33,140 --> 00:05:34,930
‫see this one is me.

76
00:05:34,940 --> 00:05:41,450
‫So Jeffrey Garani sorry, Jeffrey Karani is my name.

77
00:05:41,900 --> 00:05:44,000
‫And then the image Re-supply the email.

78
00:05:44,030 --> 00:05:44,420
‫Yes.

79
00:05:44,450 --> 00:05:49,780
‫Well, again, I also play my email address.

80
00:05:49,790 --> 00:05:52,930
‫Please don't spam that email address and then the icon.

81
00:05:52,940 --> 00:05:55,010
‫Don't worry about that again, just to leave it for now.

82
00:05:55,190 --> 00:05:57,110
‫The Akala, I don't mind about that.

83
00:05:57,110 --> 00:06:00,480
‫And then they license sort this license here by default.

84
00:06:00,500 --> 00:06:03,230
‫This a you can change it whatever you want.

85
00:06:03,230 --> 00:06:08,330
‫I am comfortable with Mitt and then this thing is going to go ahead and start creating.

86
00:06:08,780 --> 00:06:11,600
‫You are epper, you are up.

87
00:06:12,800 --> 00:06:14,510
‫So nothing has been done.

88
00:06:14,510 --> 00:06:16,760
‫It has been created and it is successful.

89
00:06:16,760 --> 00:06:18,170
‫You can see that it is is done.

90
00:06:18,560 --> 00:06:25,010
‫So the next thing that we are going to do here is to install this app on top of our site.

91
00:06:25,320 --> 00:06:32,210
‫So how do you know they say that you are running now then it's not we are going to do now is to install

92
00:06:32,210 --> 00:06:34,220
‫this app on top of our site.

93
00:06:34,520 --> 00:06:36,200
‫So how are we going to do that?

94
00:06:36,620 --> 00:06:42,710
‫We are going to run a command here, a hopeful thing that, you know, your site, you just the bench

95
00:06:44,150 --> 00:06:44,690
‫side.

96
00:06:44,690 --> 00:06:48,650
‫You have to get to the players here side to my side is called Karani.

97
00:06:49,790 --> 00:06:56,900
‫And then you say instore up and then you give it the name of the app that you just created in my name

98
00:06:56,900 --> 00:07:00,860
‫is ERP next month, so I can copy and paste it here.

99
00:07:01,040 --> 00:07:05,540
‫And if this is going to be successful, you're going to see it in store that up in our instance.

100
00:07:06,110 --> 00:07:10,370
‫So I click on Go See I cannot find our next mustardy.

101
00:07:10,700 --> 00:07:12,860
‫So let's check in with our app.

102
00:07:16,200 --> 00:07:27,180
‫OK, everything is in small, so we do install ERP next year, so it's ERP next I.

103
00:07:29,180 --> 00:07:35,720
‫And it is installing our up in a just like that, our app has been installed successfully.

104
00:07:35,930 --> 00:07:42,620
‫OK, so the next thing that you are going to do, just to be sure, make sure you check the file that

105
00:07:42,620 --> 00:07:43,190
‫is running.

106
00:07:43,220 --> 00:07:50,120
‫So let me clear this one so I will just run clear to clear the terminal and then I am going to slide

107
00:07:50,510 --> 00:07:53,020
‫into the sites, the site's directory.

108
00:07:53,030 --> 00:07:55,580
‫So I'm going to go into sites then went to list.

109
00:07:56,120 --> 00:07:58,710
‫Yeah, I have yeah.

110
00:07:58,710 --> 00:08:00,140
‫I have a site called Karani.

111
00:08:01,310 --> 00:08:03,890
‫And then what I'm going to do here is.

112
00:08:31,870 --> 00:08:37,330
‫And what I'm going to do here, I'm going to see the into the sights directly and when there is this,

113
00:08:37,330 --> 00:08:39,450
‫you are going to see that I have a site here called Karani.

114
00:08:39,700 --> 00:08:46,720
‫So if you want to know whether you are able to successfully check inside this this this file got.

115
00:08:46,720 --> 00:08:47,310
‫Absolutely.

116
00:08:48,010 --> 00:08:55,600
‫So I can just cut into absolute text and I will see here that surely I have an app called ERP next Monday

117
00:08:57,160 --> 00:08:59,740
‫to see me do that again.

118
00:08:59,920 --> 00:09:01,860
‫And he may have ERP next mustardy.

119
00:09:01,980 --> 00:09:02,280
‫All right.

120
00:09:02,860 --> 00:09:13,960
‫The next thing I am going to do now is to check this app inside of our inside of our our running application.

121
00:09:13,970 --> 00:09:18,670
‫So you can see that once we installed the app, our bench stops running.

122
00:09:18,670 --> 00:09:20,800
‫Let me respond here.

123
00:09:20,800 --> 00:09:22,280
‫Also benchtop stops.

124
00:09:22,360 --> 00:09:23,470
‫I stop running.

125
00:09:23,500 --> 00:09:24,980
‫It wants us to restart it.

126
00:09:25,010 --> 00:09:27,180
‫So we are going to do that right away.

127
00:09:27,220 --> 00:09:31,480
‫So, Ben, start and now we are having our applications starting.

128
00:09:32,230 --> 00:09:37,720
‫So when you check into your site, when I reload, let me check, first of all, before before I go

129
00:09:37,720 --> 00:09:46,330
‫there, go to help and talk about and you will see here that ERP next mustardy has been installed successfully

130
00:09:46,720 --> 00:09:48,070
‫on our application.

131
00:09:48,280 --> 00:09:53,890
‫So let's go ahead and start our bench and start and we can see our bench starting there.

132
00:09:54,280 --> 00:09:55,280
‫Make sure you do the same.

133
00:09:55,300 --> 00:09:57,340
‫Make sure you check bench to make sure it is running.

134
00:09:57,730 --> 00:10:03,190
‫And then when you come back to your application, when you check, click on hairpin click on about.

135
00:10:03,460 --> 00:10:06,160
‫You should see your ERP need to master.

136
00:10:06,160 --> 00:10:08,140
‫The application has been installed successfully.

137
00:10:08,620 --> 00:10:10,810
‫Now this is going to be a your name.

138
00:10:10,810 --> 00:10:15,980
‫So if you could you are you are you are your application ABC make sure to see ABC here.

139
00:10:16,840 --> 00:10:23,800
‫The other thing that I need to mention here is when you are doing this, make sure that your application

140
00:10:23,800 --> 00:10:27,360
‫is developer mode set to go through.

141
00:10:27,370 --> 00:10:32,680
‫So make sure that you are developer mode is active in how you do not go to the application imagery from

142
00:10:32,680 --> 00:10:34,820
‫the Tamino shrink.

143
00:10:34,900 --> 00:10:39,000
‫That and from your site you can see into your site.

144
00:10:39,010 --> 00:10:41,600
‫So I would guarantee you that directly.

145
00:10:41,830 --> 00:10:49,600
‫You will see if I could say it configure Jason, so if you will, into that that that file you should

146
00:10:49,600 --> 00:10:57,070
‫have this file, this line of code developer mode said to one, if it is here and then to zero, please

147
00:10:57,070 --> 00:10:58,210
‫make sure it is set to one.

148
00:10:58,420 --> 00:11:02,130
‫If it is not the entirety, just add to their file and you'll be fine.

149
00:11:02,410 --> 00:11:09,610
‫So let me just exit here and the next thing that I would like you to introduce you to is posthuman.

150
00:11:09,970 --> 00:11:15,860
‫If you do not have posthuman installed on your machine, install it now or you can use any other EPA

151
00:11:15,910 --> 00:11:20,620
‫testing application that you like other people like insomnia and others.

152
00:11:20,620 --> 00:11:22,120
‫It's up to you, up the up to you.

153
00:11:22,330 --> 00:11:23,670
‫Others have applications.

154
00:11:23,680 --> 00:11:27,040
‫Are they like these are these are plug in for versions to the code.

155
00:11:27,520 --> 00:11:34,830
‫You can use whatever you want, but I will personally in this course be using Posman to test our APIs.

156
00:11:35,590 --> 00:11:41,050
‫Having said that, let me let go let me head into our application in 80 here.

157
00:11:41,380 --> 00:11:47,460
‫This is the application that is running and he will see that we have a new directory called ERP next

158
00:11:47,470 --> 00:11:47,890
‫mustardy.

159
00:11:47,890 --> 00:11:51,070
‫Again, I think we have to increase the font here for the sake of your eyes.

160
00:11:51,520 --> 00:11:53,950
‫We have a directory ENFP next to my study.

161
00:11:54,130 --> 00:11:57,670
‫And when you open this directory, we have another idea to record Europea next.

162
00:11:57,670 --> 00:12:00,520
‫Mustardy, and this is what is our module.

163
00:12:00,520 --> 00:12:06,210
‫So any time you install a new app, it creates a module with bearing the name of that up.

164
00:12:06,520 --> 00:12:11,710
‫So the next master, instead of the name of our app, is the module that you are going to be running.

165
00:12:12,040 --> 00:12:17,140
‫If you open that module, you'll find that we have a couple of folders here, like, for instance,

166
00:12:17,700 --> 00:12:24,070
‫a public folder contains the Cyesis in the years that the application will be running on and any other

167
00:12:24,280 --> 00:12:26,140
‫files that you may want to put here.

168
00:12:26,290 --> 00:12:29,350
‫I'll be going into the details of this these files within the post.

169
00:12:29,740 --> 00:12:34,570
‫And then here before we leave, I want to mention very briefly the Hawks NPA file, because it is very,

170
00:12:34,570 --> 00:12:36,430
‫very important that I mentioned this to you.

171
00:12:36,790 --> 00:12:38,560
‫Of course, it has the details of our up.

172
00:12:38,830 --> 00:12:41,770
‫And then we have so many other things that are here.

173
00:12:42,760 --> 00:12:45,100
‫We are going to be exploring this file as we move along.

174
00:12:45,370 --> 00:12:49,870
‫There is a lot that we are going to be doing here because this is the file that we are going to be using

175
00:12:49,870 --> 00:12:54,760
‫to be to call other things or to trigger things when other actions have taken place.

176
00:12:55,030 --> 00:13:00,370
‫So here we have our episode of our Hooks NPA file in.

177
00:13:00,370 --> 00:13:05,560
‫The next thing that I would like to do before we close this, this video is to create our API file,

178
00:13:05,690 --> 00:13:06,100
‫right.

179
00:13:06,430 --> 00:13:08,560
‫Because we are getting our environment ready, remember?

180
00:13:08,800 --> 00:13:14,060
‫So on the direct order, the place where you have hoopsters spy, you can just go ahead and.

181
00:13:14,060 --> 00:13:14,240
‫Right.

182
00:13:14,290 --> 00:13:16,840
‫Click on this and create a new file.

183
00:13:16,930 --> 00:13:17,920
‫I don't know what they'll be able to see.

184
00:13:17,920 --> 00:13:19,900
‫If we can call it the APO episode of PI.

185
00:13:20,140 --> 00:13:21,250
‫I like to call it that.

186
00:13:21,460 --> 00:13:27,550
‫Of course, I'm being told I do not have permission to write there because this, this, this studio

187
00:13:27,550 --> 00:13:29,580
‫is logged in, is opened by the.

188
00:13:30,530 --> 00:13:38,740
‫The road user, you need to open it as long as you're up next user or because we are developers, what

189
00:13:38,750 --> 00:13:47,660
‫we are going to do, we are going to go here, go back, go back and then slide into apps, simply go

190
00:13:47,660 --> 00:13:53,750
‫back again, make sure you have this directory, this I wanted to make sure you're are seeing this subsidy

191
00:13:54,050 --> 00:14:05,570
‫into apps and then go to our next mustardy app and then you can list again into your next mustardy when

192
00:14:05,570 --> 00:14:08,990
‫you least here you see that this is where we have our Hogzilla API.

193
00:14:09,200 --> 00:14:18,250
‫So we can just go ahead now and use this pseudo command to create sadhus pseudo Tajh and then I don't

194
00:14:18,260 --> 00:14:18,710
‫pay.

195
00:14:18,810 --> 00:14:19,310
‫All right.

196
00:14:19,940 --> 00:14:23,300
‫And then I enter and now that file has been created for me.

197
00:14:23,310 --> 00:14:28,660
‫So when I come back to this was to the code, I will find that here I have a file called Approved by.

198
00:14:28,880 --> 00:14:34,040
‫So to make sure that we have permissions to write on this file, because right now, if I just do import

199
00:14:34,550 --> 00:14:39,290
‫Frappier, this is the first thing we are going to be doing again and will be allowed to save it to

200
00:14:39,290 --> 00:14:41,640
‫make sure that they do not have these problems in the future.

201
00:14:41,840 --> 00:14:48,950
‫Let me just change the permissions of these files so I'll do sudo tunes their mode seven seven seven

202
00:14:49,190 --> 00:14:50,810
‫four API to play file.

203
00:14:50,840 --> 00:14:53,780
‫OK, so this this file now has been opened.

204
00:14:53,930 --> 00:14:56,720
‫I can write it comfortably, I can see it in UK.

205
00:14:56,720 --> 00:14:59,000
‫Do not get any error.

206
00:14:59,150 --> 00:15:00,190
‫I'm going to stop here.

207
00:15:00,350 --> 00:15:03,370
‫So this is where we are going to be starting to write our code now then.

208
00:15:03,420 --> 00:15:06,860
‫So in the next section that is lesson number three.

209
00:15:07,100 --> 00:15:13,970
‫What we are going to be doing is that we are going to be creating our first P, I think you so much

210
00:15:13,970 --> 00:15:16,340
‫and see you in the next lecture.